package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.RoleEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface RoleDao {


  public ArrayList < HashMap > searchAllRole();

  // 查询分页
  public ArrayList < HashMap > searchByPage( Map param );

  // 查询总记录数
  public Long searchCount( Map param );

  // 新增
  public int insert( RoleEntity role );

  // 修改
  public HashMap searchById( int id );

  public ArrayList < Integer > searchUserIdByRoleId( int id );

  public int update( RoleEntity role );

  // 删除
  public boolean searchCanDelete( Integer[] ids );

  public int deleteByIds( Integer[] ids );


}




